define(['./plataforma'], function (plataforma) {
    'use strict';
    return plataforma.config(['$routeProvider', function ($routeProvider) {
    	$routeProvider.when('/index', {
            templateUrl: 'scripts/views/partial1.html',
            controller: 'PlataformaController'
        });
    	$routeProvider.when('/aluno/cadastro', {
            templateUrl: 'scripts/views/aluno/cadastro.html',
            controller: 'CadastroAlunoController'
        });
    	$routeProvider.when('/aluno/consulta', {
            templateUrl: 'scripts/views/aluno/consulta.html',
            controller: 'ConsultaAlunoController'
        });
    	$routeProvider.when('/aluno/:idAluno', {
            templateUrl: 'scripts/views/aluno/cadastro.html',
            controller: 'CadastroAlunoController'
        });
    	$routeProvider.when('/professor/cadastro', {
            templateUrl: 'scripts/views/professor/cadastro.html',
            controller: 'CadastroProfessorController'
        });
    	$routeProvider.when('/professor/consulta', {
            templateUrl: 'scripts/views/professor/consulta.html',
            controller: 'ConsultaProfessorController'
        });
    	$routeProvider.when('/professor/:idProfessor', {
            templateUrl: 'scripts/views/professor/cadastro.html',
            controller: 'CadastroProfessorController'
        });
    	
    	$routeProvider.when('/turma/cadastro', {
            templateUrl: 'scripts/views/turma/cadastro.html',
            controller: 'CadastroTurmaController'
        });
    	$routeProvider.when('/turma/consulta', {
            templateUrl: 'scripts/views/turma/consulta.html',
            controller: 'ConsultaTurmaController'
        });
    	$routeProvider.when('/turma/matricula', {
            templateUrl: 'scripts/views/turma/matricula.html',
            controller: 'MatriculaController'
        });
    	$routeProvider.when('/turma/:idTurma', {
            templateUrl: 'scripts/views/turma/cadastro.html',
            controller: 'CadastroTurmaController'
        });
    	
    	$routeProvider.when('/instrumento/cadastro', {
    		templateUrl: 'scripts/views/instrumento/cadastro.html',
    		controller: 'CadastroInstrumentoController'
    	});
    	$routeProvider.when('/instrumento/consulta', {
            templateUrl: 'scripts/views/instrumento/consulta.html',
            controller: 'ConsultaInstrumentoController'
        });
    	$routeProvider.when('/instrumento/:idInstrumento', {
    		templateUrl: 'scripts/views/instrumento/cadastro.html',
    		controller: 'CadastroInstrumentoController'
    	});
    	
    	$routeProvider.when('/disciplina/cadastro', {
    		templateUrl: 'scripts/views/disciplina/cadastro.html',
    		controller: 'CadastroDisciplinaController'
    	});
    	$routeProvider.when('/disciplina/consulta', {
            templateUrl: 'scripts/views/disciplina/consulta.html',
            controller: 'ConsultaDisciplinaController'
        });
    	$routeProvider.when('/disciplina/:idDisciplina', {
    		templateUrl: 'scripts/views/disciplina/cadastro.html',
    		controller: 'CadastroDisciplinaController'
    	});
    	
        $routeProvider.otherwise({
            redirectTo: '/index'
        });
        
    }]);
});